export interface ModelMesssage {
  role: 'user' | 'assistant' | 'system' | 'tool_use' | 'tool'
	content?: string
	reasoning_content?: string
	chunks?: ChunkMessage[]
}

export interface ChunkMessage {
	type: 'text' | 'reasoning' | 'usage' | 'error' | 'tool_calls'
  content?: string
	reasoning?: string
	usage?: {
		prompt_tokens?: number
		completion_tokens?: number
	} & {
		prompt_cache_hit_tokens?: number
		completion_cache_hit_tokens?: number
	}
	chunks?: ChunkMessage[]
	tool_calls?: {
		id?: string
		type?: 'function'
		index?: number
		function: {
			name?: string
			arguments?: string
			args?: Record<string, any>
		}
	}[]
}


export interface UserBlance {
  balance: number
  currency: string
	available: boolean
}

export interface ModelInfo {
	baseUrl: string
	apiKey: string
	modelName: string
	maxTokens: string
	temperature: string
	ak?: string
	sk?: string
	model?: string
	manufacturer?: string
}